<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head id="Head1">
<title>客户管理</title>
<link href="../Styles/css.css" rel="stylesheet" type="text/css" />
<link href="../Styles/ts_css.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/jquery.js" type="text/javascript"></script>
<script src="../Scripts/jquery.hotkeys.js" type="text/javascript"></script>
<script src="../Scripts/jstree/jquery.jstree.js" type="text/javascript"></script>
<script src="../Scripts/jquery.cookie.js" type="text/javascript"></script>
<script src="../Scripts/EmployeesManager.js" type="text/javascript"></script>
<!--<script src="Scripts/EmployeesManager.js?0d189a86cc764626a482e60e084441dd" type="text/javascript"></script>-->
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
	<!--  <form method="post" action="EmployeesManager.htm" id="form1"> -->


	<script type="text/javascript">
		//<![CDATA[
		var theForm = document.forms['form1'];
		if (!theForm) {
			theForm = document.form1;
		}
		function __doPostBack(eventTarget, eventArgument) {
			if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
				theForm.__EVENTTARGET.value = eventTarget;
				theForm.__EVENTARGUMENT.value = eventArgument;
				theForm.submit();
			}
		}
		//]]>
		function openWin() {
			showModalDialog(
					"Wd_EmployeesUpdateManager.jsp",
					"example04",
					"dialogWidth:850px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
		}
	</script>

	<form action="/wanda/salechance/WdSaleChanceList.do" method="post">

		<div
			style="background: #EFF3FF; width: 22%; float: left; overflow-y: auto;">
			<!-- <div id="tree" class="tree" style="background: #EFF3FF;">
        </div> -->
		</div>
		<div style="width: 75%; float: left; border: 0px solid #82AFE8">
			<table width="100%">
				<tr>
					<td width="6%">客户姓名：</td>
					<td width="13%"><input name="customerName" type="text"
						id="customerName" style="width:95%;" /></td>
					<td width="7%">业务员姓名：</td>
					<td width="13%"><input name="userName" type="text"
						id="userName" style="width:95%;" /></td>
					<td width="6%">业务员编号：</td>
					<td width="13%"><input name="number" type="text" id="number"
						style="width:95%;" /></td>
					<td width="7%"></td>
					<td width="13%"><input type="submit" id="selectlike"
						class="submit" style="float: right" value="查询" /></td>
					<td width="7%">
				</tr>
			</table>
			<table>
				<tr>
					<td width="5%"><input type="button" id="btnAdd" class="button"
						style="float: right" value="添加" onclick="add()" /></td>

					<td width="5%"><input type="button" id="btnAdd" class="button"
						style="float: right" value="转认购" /></td>
					<td width="5%"><input type="button" id="btnAdd" class="button"
						style="float: right" value="转签约" /></td>
				</tr>
			</table>
	</form>
	<div class="cxlb_2" style="width: 100%">
		<table width="120%" class="tablist">
			<thead id="tablistHer">
				<tr>
					<th width="10%">销售机会名称</th>
					<th width="8%">客户姓名</th>
					<th width="8%">意向房间</th>
					<th width="8%">业务员名称</th>
					<th width="8%">修改人</th>
					<th width="8%">修改时间</th>
		<!-- 			               <th width="8%">
                           项目编号             
                        </th>
                        <th width="8%">
                           楼栋编号                
                        </th>
                        <th width="8%">
                            单元编号
                        </th>
                         <th width="8%">
                            房间
                        </th> -->
					<th width="8%">客户电话</th>
					<th width="8%">销售机会创建时间</th>
					<th width="8%">业务员编号</th>
					<th width="10%">操作</th>
				</tr>
			</thead>
			<tbody id="tab">

				<c:forEach items="${ SaleChanceList }" var="SaleChanceList">
					<c:if test="${ SaleChanceList.deleteState<1 }">
						<tr>
							<td>${ SaleChanceList.saleChanceName }</td>
							<td>${ SaleChanceList.customerName }</td>
							<td>${ SaleChanceList.intentionDescription }</td>
							<td>${ SaleChanceList.userName }</td>
							<td>${ SaleChanceList.updateUser }</td>
							<td><fmt:formatDate value="${ SaleChanceList.updateTime }"	pattern="yyyy-MM-dd"/></td>
							<td>${ SaleChanceList.tel }</td>
							<td><fmt:formatDate value="${ SaleChanceList.addtime }"  pattern="yyyy-MM-dd"/> </td>
							<td>${ SaleChanceList.number }</td>
							<td><%-- <a href="/wanda/sale_chance/selectid.do?saleChanceId=${SaleChanceList.saleChanceId}&userId=${userId}">修改</a> --%>
								<a href="javaScript:void(0)"
								onclick="del('${SaleChanceList.saleChanceId}','${userId}')">删除</a>
						</tr>
					</c:if>
				</c:forEach>
			</tbody>
		</table>

		<script type="text/javascript">
		<!--
			var Ptr = document.getElementById("tab").getElementsByTagName("tr");
			function pageLoad() {
				for (i = 1; i < Ptr.length + 1; i++) {
					Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
				}
			}
			window.onload = pageLoad;
			for (var i = 0; i < Ptr.length; i++) {
				Ptr[i].onmouseover = function() {
					this.tmpClass = this.className;
					this.className = "t3";

				};
				Ptr[i].onmouseout = function() {
					this.className = this.tmpClass;
				};
			}
		//-->
		</script>

		<script>
			function del(saleChanceId, userId) {
				if (confirm('是否删除!')) {
					location.href = "/wanda/salechance/WdSaleChanceDelete.do?saleChanceId="
							+ saleChanceId + "&userId=" + userId;
				}
			}
		</script>
		<!--添加  -->
		<script>
			//删除
			function add() {
				location.href = "/wanda/salechance/WdSaleChanceToAdd.do";
			}
		</script>
		<!--转认购  -->
		<script>
			//删除
			function add() {
				location.href = "/wanda/salechance/WdSaleChanceToAdd.do";
			}
		</script>
		<div style="width: 100%;">

			<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
			<div id="AspNetPager1" class="anpager"
				style="width:100%;text-align:left;">
				<div align="left" class="anpager" style="width:60%;float:left;">
					<a disabled="disabled" style="margin-right:10px;">首页</a><a
						disabled="disabled" style="margin-right:10px;">上一页</a><span
						class="cpb" style="margin-right:10px;">1</span><a
						disabled="disabled" style="margin-right:10px;">下一页</a><a
						disabled="disabled" style="margin-right:10px;">尾页</a>
				</div>
				<div class="anpager" style="width:40%;float:left;">
					记录总数：<font color="blue"><b>1</b></font> 总页数：<font color="blue"><b>1</b></font>
					当前页：<font color="red"><b>1</b></font>
				</div>
			</div>
			<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
		</div>
	</div>
	</div>
	<input type="hidden" name="hidParentUuid" id="hidParentUuid" />
	<input type="hidden" name="hidUuid" id="hidUuid" />
	<input type="hidden" name="hidCookUuid" id="hidCookUuid" value="100002" />
	<input type="hidden" id="isShow" value="0" />
	<input name="hidpanelShow" type="hidden" id="hidpanelShow" />
	<input type="hidden" id="hidorganizationUuid" />
	<input type="hidden" id="hidfromSubmit" name="hidfromSubmit" value="1" />
	<input type="hidden" id="hidfromSubmit1" name="hidfromSubmit1" />
	<span id="lblScript"><script>
		$.cookie('jstree_open', '')
	</script></span>
	</form>
</body>
</html>
